package com.system.manager.modules.projectLibrary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jisf
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ProjectChange对象", description="")
@NoArgsConstructor
public class ProjectChange implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "项目id")
    private String projectId;

    @ApiModelProperty(value = "申请变更者")
    private Integer applicant;

    @ApiModelProperty(value = "变更时间")
    private Date time;

    @ApiModelProperty(value = "是否批准（0表示未批准，1表示已批准）")
    private Integer ratify;

    @ApiModelProperty(value = "所属公司")
    private Integer firm;

    public ProjectChange(String projectId, Integer applicant, Date time, Integer ratify) {
        this.projectId = projectId;
        this.applicant = applicant;
        this.time = time;
        this.ratify = ratify;
    }


}
